#ifndef					_FILEIO_H_
#define					_FILEIO_H_

#include <stdio.h>

class CFileIO
{
public:
	CFileIO();
	~CFileIO();

	enum OPEN_TYPE
	{
		READ = 0,
		WRITE,
	};

	bool				Create(const char* ptrFilename, OPEN_TYPE open = READ);
	bool				Destroy();
	bool				FlagCreate()	{	return m_bFlagCreate; }

	bool				ReadLine(char* ptrBuffer, int nMaxBufferSize = 1024);
	bool				WriteLine(const char* ptrBuffer);
	bool				Write(const char* ptrBuffer);

private:
	bool				m_bFlagCreate;
	FILE*				m_ptrFile;

protected:

};

#endif					//_FILEIO_H_


